<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Docs For Class Model</title>
	<link rel="stylesheet" type="text/css" href="../media/style.css">
	<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
	<td class="header-top-left"><img src="../media/logo.png" border="0" alt="phpDocumentor " /></td>
    <td class="header-top-right">Buan<br /><div class="header-top-right-subpackage"></div></td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td colspan="2" class="header-menu">
      
                        
                      		[ <a href="../classtrees_Buan.html" class="menu">class tree: Buan</a> ]
		[ <a href="../elementindex_Buan.html" class="menu">index: Buan</a> ]
            [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="195" class="menu">
		<div class="package-title">Buan</div>
  <div class="package">
	<div id="todolist">
			<p><a href="../todolist.html">Todo List</a></p>
	</div>
	</div>
      <b>Packages:</b><br />
  <div class="package">
              <a href="../li_Buan.html">Buan</a><br />
      	</div>
      <br />
                        <b>Files:</b><br />
        <div class="package">
				<span style="padding-left: 1em;"><a href="../Buan/_BuanAutoLoader.php.html">BuanAutoLoader.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanConfig.php.html">BuanConfig.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanController.php.html">BuanController.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanCore.php.html">BuanCore.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanDatabase.php.html">BuanDatabase.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanException.php.html">BuanException.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanExtension.php.html">BuanExtension.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanInflector.php.html">BuanInflector.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanModel.php.html">BuanModel.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanModelCollection.php.html">BuanModelCollection.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanModelCriteria.php.html">BuanModelCriteria.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanModelCriteriaGroup.php.html">BuanModelCriteriaGroup.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanModelManager.php.html">BuanModelManager.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanModelRelation.php.html">BuanModelRelation.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanModelTracker.php.html">BuanModelTracker.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanObject.php.html">BuanObject.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanPdoStatementWrapper.php.html">BuanPdoStatementWrapper.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanPdoWrapper.php.html">BuanPdoWrapper.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanSystemLog.php.html">BuanSystemLog.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanSystemLogEntry.php.html">BuanSystemLogEntry.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanUrlCommand.php.html">BuanUrlCommand.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/_BuanView.php.html">BuanView.php</a></span><br />
	  </div>
  <div class="package">
	<strong>ViewHelper</strong><br />			<span style="padding-left: 1em;"><a href="../Buan/ViewHelper/_view-helper---BuanViewHelperHtml.php.html">BuanViewHelperHtml.php</a></span><br />
			<span style="padding-left: 1em;"><a href="../Buan/ViewHelper/_view-helper---BuanViewHelperI18n.php.html">BuanViewHelperI18n.php</a></span><br />
	  </div>
            <br />
                  <b>Classes:</b><br />
        <div class="package">
		    		<a href="../Buan/AutoLoader.html">AutoLoader</a>    	 <br />
	    		<a href="../Buan/Config.html">Config</a>    	 <br />
	    		<a href="../Buan/Controller.html">Controller</a>    	 <br />
	    		<a href="../Buan/Core.html">Core</a>    	 <br />
	    		<a href="../Buan/Database.html">Database</a>    	 <br />
	    		<a href="../Buan/Exception.html">Exception</a>    	 <br />
	    		<a href="../Buan/Extension.html">Extension</a>    	 <br />
	    		<a href="../Buan/Inflector.html">Inflector</a>    	 <br />
	    		<a href="../Buan/Model.html">Model</a>    	 <br />
	    		<a href="../Buan/ModelCollection.html">ModelCollection</a>    	 <br />
	    		<a href="../Buan/ModelCriteria.html">ModelCriteria</a>    	 <br />
	    		<a href="../Buan/ModelCriteriaGroup.html">ModelCriteriaGroup</a>    	 <br />
	    		<a href="../Buan/ModelManager.html">ModelManager</a>    	 <br />
	    		<a href="../Buan/ModelRelation.html">ModelRelation</a>    	 <br />
	    		<a href="../Buan/ModelTracker.html">ModelTracker</a>    	 <br />
	    		<a href="../Buan/Object.html">Object</a>    	 <br />
	    		<a href="../Buan/PdoStatementWrapper.html">PdoStatementWrapper</a>    	 <br />
	    		<a href="../Buan/PdoWrapper.html">PdoWrapper</a>    	 <br />
	    		<a href="../Buan/SystemLog.html">SystemLog</a>    	 <br />
	    		<a href="../Buan/SystemLogEntry.html">SystemLogEntry</a>    	 <br />
	    		<a href="../Buan/UrlCommand.html">UrlCommand</a>    	 <br />
	    		<a href="../Buan/View.html">View</a>    	 <br />
	  </div>
  <div class="package">
	ViewHelper<br />	    <span style="padding-left: 1em;">		<a href="../Buan/ViewHelper/Html.html">Html</a>    </span>	 <br />
	    <span style="padding-left: 1em;">		<a href="../Buan/ViewHelper/I18n.html">I18n</a>    </span>	 <br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: Model</h1>
Source Location: /BuanModel.php<br /><br />

<h2 class="class-name">Class Model</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Class Overview</div>
	<div class="nav-bar">
					<span class="disabled">Class Overview</span>
						
					| <a href="#sec-inherited">Inherited Properties, Constants, and Methods</a>
											| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
														| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
								</div>
	<div class="info-box-body">
		<table width="100%" border="0">
		<tr><td valign="top" width="60%" class="class-overview">

        		
		<p class="notes">
			Located in <a class="field" href="_BuanModel.php.html">/BuanModel.php</a> [<span class="field">line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a6">6</a></span>]
		</p>

		
		<pre><a href="../Buan/Object.html">Object</a>
   |
   --Model</pre>

		
		
		
		</td>

				<td valign="top" width="20%" class="class-overview">
		<p align="center" class="short-description"><strong><a href="#sec_vars">Properties</a></strong></p>
		<ul>
		  		  <li><a href="../Buan/Model.html#var$dbConnectionName">$dbConnectionName</a></li>
		  		  <li><a href="../Buan/Model.html#var$dbData">$dbData</a></li>
		  		  <li><a href="../Buan/Model.html#var$dbTableName">$dbTableName</a></li>
		  		  <li><a href="../Buan/Model.html#var$dbTablePrimaryKey">$dbTablePrimaryKey</a></li>
		  		  <li><a href="../Buan/Model.html#var$hasChanged">$hasChanged</a></li>
		  		  <li><a href="../Buan/Model.html#var$hasCompositePrimaryKey">$hasCompositePrimaryKey</a></li>
		  		  <li><a href="../Buan/Model.html#var$hasLoadedRelatedModels">$hasLoadedRelatedModels</a></li>
		  		  <li><a href="../Buan/Model.html#var$isInDatabase">$isInDatabase</a></li>
		  		  <li><a href="../Buan/Model.html#var$modelName">$modelName</a></li>
		  		  <li><a href="../Buan/Model.html#var$relatedModels">$relatedModels</a></li>
		  		</ul>
		</td>
		
				<td valign="top" width="20%" class="class-overview">
		<p align="center" class="short-description"><strong><a href="#sec_methods">Methods</a></strong></p>
		<ul>
		  		  <li><a href="../Buan/Model.html#method__construct">__construct</a></li>
		  		  <li><a href="../Buan/Model.html#methodaddRelatedModel">addRelatedModel</a></li>
		  		  <li><a href="../Buan/Model.html#methodclearRelatedModels">clearRelatedModels</a></li>
		  		  <li><a href="../Buan/Model.html#methodcreate">create</a></li>
		  		  <li><a href="../Buan/Model.html#methoddebug">debug</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetDbConnectionName">getDbConnectionName</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetDbData">getDbData</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetDbTableName">getDbTableName</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetForeignKey">getForeignKey</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetLinkingModel">getLinkingModel</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetModelManager">getModelManager</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetPrimaryKey">getPrimaryKey</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetPrimaryKeyValue">getPrimaryKeyValue</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetPrimaryKeyValueToken">getPrimaryKeyValueToken</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetRelatedModelByInstance">getRelatedModelByInstance</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetRelatedModels">getRelatedModels</a></li>
		  		  <li><a href="../Buan/Model.html#methodgetRelatedModelsByCardinality">getRelatedModelsByCardinality</a></li>
		  		  <li><a href="../Buan/Model.html#methodhasChanged">hasChanged</a></li>
		  		  <li><a href="../Buan/Model.html#methodhasCompositePrimaryKey">hasCompositePrimaryKey</a></li>
		  		  <li><a href="../Buan/Model.html#methodisInDatabase">isInDatabase</a></li>
		  		  <li><a href="../Buan/Model.html#methodloadRelatedModels">loadRelatedModels</a></li>
		  		  <li><a href="../Buan/Model.html#methodpopulateFromArray">populateFromArray</a></li>
		  		  <li><a href="../Buan/Model.html#methodremoveRelatedModel">removeRelatedModel</a></li>
		  		  <li><a href="../Buan/Model.html#methodsetPrimaryKeyValue">setPrimaryKeyValue</a></li>
		  		  <li><a href="../Buan/Model.html#methodsetRelatedModel">setRelatedModel</a></li>
		  		  <li><a href="../Buan/Model.html#method__call">__call</a></li>
		  		  <li><a href="../Buan/Model.html#method__get">__get</a></li>
		  		  <li><a href="../Buan/Model.html#method__isset">__isset</a></li>
		  		  <li><a href="../Buan/Model.html#method__set">__set</a></li>
		  		  <li><a href="../Buan/Model.html#method__unset">__unset</a></li>
		  		</ul>
		</td>
		
		</tr></table>
		<div class="top">[ <a href="#top">Top</a> ]</div>
	</div>
</div>


	<a name="sec-inherited"></a>
	<div class="info-box">
		<div class="info-box-title">Inherited Properties, Constants, and Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
						| <span class="disabled">Inherited Properties, Constants, and Methods</span>
												| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
																			| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
							    				</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header" width="30%">Inherited Properties</th>
					<th class="class-table-header" width="40%">Inherited Methods</th>
					<th class="class-table-header" width="30%">Inherited Constants</th>
				</tr>
				<tr>
					<td width="30%">
													<p>Inherited From <span class="classname"><a href="../Buan/Object.html">Object</a></span></p>
							<blockquote>
								<dl>
																			<dt>
											<span class="method-definition"><a href="../Buan/Object.html#var$HASH">Object::$HASH</a></span>
										</dt>
										<dd>
											<span class="method-definition"></span>
										</dd>
																			<dt>
											<span class="method-definition"><a href="../Buan/Object.html#var$listeners">Object::$listeners</a></span>
										</dt>
										<dd>
											<span class="method-definition"></span>
										</dd>
																	</dl>
							</blockquote>
											</td>
					<td width="40%">
													<p>Inherited From <span class="classname"><a href="../Buan/Object.html">Object</a></span></p>
							<blockquote>
								<dl>
																			<dt>
											<span class="method-definition"><a href="../Buan/Object.html#method__construct">Object::__construct()</a></span>
										</dt>
										<dd>
											<span class="method-definition"></span>
										</dd>
																			<dt>
											<span class="method-definition"><a href="../Buan/Object.html#methodaddEventListener">Object::addEventListener()</a></span>
										</dt>
										<dd>
											<span class="method-definition"></span>
										</dd>
																			<dt>
											<span class="method-definition"><a href="../Buan/Object.html#methodinvokeEvent">Object::invokeEvent()</a></span>
										</dt>
										<dd>
											<span class="method-definition"></span>
										</dd>
																			<dt>
											<span class="method-definition"><a href="../Buan/Object.html#methodremoveEventListener">Object::removeEventListener()</a></span>
										</dt>
										<dd>
											<span class="method-definition"></span>
										</dd>
																	</dl>
							</blockquote>
											</td>
					<td width="30%">
											</td>
				</tr>
			</table>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Property Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
										| <a href="#sec-inherited">Inherited Properties and Methods</a>
						| <span class="disabled">Property Summary</span> | <a href="#sec-vars">Properties Detail</a>
												| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
							    				</div>
		<div class="info-box-body">
			<div class="var-summary">
			<table border="0" cellspacing="0" cellpadding="0" class="var-summary">
																																																																									<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">string</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$dbConnectionName" title="details" class="var-name-summary">$dbConnectionName</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">Name of the database connection used by this Model.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">array</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$dbData" title="details" class="var-name-summary">$dbData</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">Holds the value of each field in this Model.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">string</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$dbTableName" title="details" class="var-name-summary">$dbTableName</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">The name of the database table that is used to store records of this Model  type. If not specified in the extended class then we will attempt to guess  the table name based on suggested naming convetions.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">string</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$dbTablePrimaryKey" title="details" class="var-name-summary">$dbTablePrimaryKey</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">The name of the field(s) that make up this table's primary key.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">bool</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$hasChanged" title="details" class="var-name-summary">$hasChanged</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">Set to TRUE if any data elements are altered.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">mixed</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$hasCompositePrimaryKey" title="details" class="var-name-summary">$hasCompositePrimaryKey</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description"></td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">array</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$hasLoadedRelatedModels" title="details" class="var-name-summary">$hasLoadedRelatedModels</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">Whenever a call to $this-&gt;loadRelatedModels() is executed, a flag is set in  this array to indicate that data has already been loaded form persistent  storage and should not be loaded again.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">bool</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$isInDatabase" title="details" class="var-name-summary">$isInDatabase</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">Flag to indicate if this Model record already exists in the database</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">string</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$modelName" title="details" class="var-name-summary">$modelName</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">Stores the Model's name (ie. everything before the class name's &quot;Model&quot;  suffix).</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title"><span class="var-type-summary">array</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$relatedModels" title="details" class="var-name-summary">$relatedModels</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">Holds any Models that have a relationship to $this Model.</td></tr>
				</div>
										</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
										| <a href="#sec-inherited">Inherited Properties and Methods</a>
															| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
							    					| <span class="disabled">Method Summary</span> | <a href="#sec-methods">Methods Detail</a>
		</div>
		<div class="info-box-body">
			<div class="method-summary">
				<table border="0" cellspacing="0" cellpadding="0" class="method-summary">
																																				<div class="method-definition">
					<tr><td class="method-definition">static
											<span class="method-result"><a href="../Buan/Model.html">Model</a></span>&nbsp;&nbsp;
					</td>
					<td class="method-definition"><a href="#create" title="details" class="method-name">create</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">This is a Factory method for generating new instances of Model classes.</td></tr>
				</div>
																																																																																																																																																																																																																																				<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Model</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#__construct" title="details" class="method-name">__construct</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#addRelatedModel" title="details" class="method-name">addRelatedModel</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#clearRelatedModels" title="details" class="method-name">clearRelatedModels</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																								<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#debug" title="details" class="method-name">debug</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getDbConnectionName" title="details" class="method-name">getDbConnectionName</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getDbData" title="details" class="method-name">getDbData</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getDbTableName" title="details" class="method-name">getDbTableName</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getForeignKey" title="details" class="method-name">getForeignKey</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getLinkingModel" title="details" class="method-name">getLinkingModel</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getModelManager" title="details" class="method-name">getModelManager</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getPrimaryKey" title="details" class="method-name">getPrimaryKey</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getPrimaryKeyValue" title="details" class="method-name">getPrimaryKeyValue</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getPrimaryKeyValueToken" title="details" class="method-name">getPrimaryKeyValueToken</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getRelatedModelByInstance" title="details" class="method-name">getRelatedModelByInstance</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getRelatedModels" title="details" class="method-name">getRelatedModels</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getRelatedModelsByCardinality" title="details" class="method-name">getRelatedModelsByCardinality</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#hasChanged" title="details" class="method-name">hasChanged</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#hasCompositePrimaryKey" title="details" class="method-name">hasCompositePrimaryKey</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#isInDatabase" title="details" class="method-name">isInDatabase</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#loadRelatedModels" title="details" class="method-name">loadRelatedModels</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#populateFromArray" title="details" class="method-name">populateFromArray</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#removeRelatedModel" title="details" class="method-name">removeRelatedModel</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#setPrimaryKeyValue" title="details" class="method-name">setPrimaryKeyValue</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#setRelatedModel" title="details" class="method-name">setRelatedModel</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#__call" title="details" class="method-name">__call</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#__get" title="details" class="method-name">__get</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#__isset" title="details" class="method-name">__isset</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#__set" title="details" class="method-name">__set</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#__unset" title="details" class="method-name">__unset</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
												</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Properties</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
										| <a href="#sec-inherited">Inherited Properties and Methods</a>
										| <a href="#sec-var-summary">Property Summary</a> | <span class="disabled">Properties Detail</span>
															| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
												</div>
		<div class="info-box-body">
			<a name="var$dbConnectionName" id="$dbConnectionName"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>&nbsp;&nbsp;
			<span class="var-name">$dbConnectionName</span>
			 = <span class="var-default"> 'default'</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a91">91</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>Name of the database connection used by this Model.
</strong></p>
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$dbData" id="$dbData"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>&nbsp;&nbsp;
			<span class="var-name">$dbData</span>
			 = <span class="var-default">array()</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a19">19</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>Holds the value of each field in this Model.
</strong></p>
<span class="description"><p>If any of the fields point to another Model, then an instance of that Model  type may be stored in that field within this array.</p><p>Any changes to the fields in this array may need to be reflected in the  Models stored in $this-&gt;foreignModels (see below).  This is handled automatically within the __call() method.</p></span>	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$dbTableName" id="$dbTableName"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>&nbsp;&nbsp;
			<span class="var-name">$dbTableName</span>
			 = <span class="var-default"> NULL</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a101">101</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>The name of the database table that is used to store records of this Model  type. If not specified in the extended class then we will attempt to guess  the table name based on suggested naming convetions.
</strong></p>
<span class="description"><p>eg. ModelName becomes model_name</p></span>	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$dbTablePrimaryKey" id="$dbTablePrimaryKey"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>&nbsp;&nbsp;
			<span class="var-name">$dbTablePrimaryKey</span>
			 = <span class="var-default"> 'id'</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a110">110</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>The name of the field(s) that make up this table's primary key.
</strong></p>
<span class="description"><p>If the primary key is made up of several fields (ie. a composite key), then  separate each field name with a comma (no spaces)</p></span>	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$hasChanged" id="$hasChanged"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">bool</span>&nbsp;&nbsp;
			<span class="var-name">$hasChanged</span>
			 = <span class="var-default"> FALSE</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a26">26</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>Set to TRUE if any data elements are altered.
</strong></p>
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$hasCompositePrimaryKey" id="$hasCompositePrimaryKey"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>&nbsp;&nbsp;
			<span class="var-name">$hasCompositePrimaryKey</span>
			 = <span class="var-default"> FALSE</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a79">79</a>]</span>
		</span>
	</div>

		<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$hasLoadedRelatedModels" id="$hasLoadedRelatedModels"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>&nbsp;&nbsp;
			<span class="var-name">$hasLoadedRelatedModels</span>
			 = <span class="var-default">array()</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a38">38</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>Whenever a call to $this-&gt;loadRelatedModels() is executed, a flag is set in  this array to indicate that data has already been loaded form persistent  storage and should not be loaded again.
</strong></p>
<span class="description"><p>This array is indexed by Model name.  The flag is only set if ALL records have been loaded form the database - ie.  the data source is exhausted.</p></span>	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$isInDatabase" id="$isInDatabase"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">bool</span>&nbsp;&nbsp;
			<span class="var-name">$isInDatabase</span>
			 = <span class="var-default"> FALSE</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a45">45</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>Flag to indicate if this Model record already exists in the database
</strong></p>
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$modelName" id="$modelName"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>&nbsp;&nbsp;
			<span class="var-name">$modelName</span>
			 = <span class="var-default"> ''</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a53">53</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>Stores the Model's name (ie. everything before the class name's &quot;Model&quot;  suffix).
</strong></p>
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$relatedModels" id="$relatedModels"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>&nbsp;&nbsp;
			<span class="var-name">$relatedModels</span>
			 = <span class="var-default">array(<br />		ModelRelation::NONE=&gt;array(),ModelRelation::ONE_TO_ONE=&gt;array(),ModelRelation::ONE_TO_MANY=&gt;array(),ModelRelation::MANY_TO_ONE=&gt;array(),ModelRelation::MANY_TO_MANY=&gt;array())</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a71">71</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>Holds any Models that have a relationship to $this Model.
</strong></p>
<span class="description"><p>The indexes of this array correspond to the ModelRelation class constants.  For Models loaded from the database, they are added to these lists in  ascending order of their ID - as far as possible. This is meant to aid  searching through larger lists.</p><p>ONE_TO_MANY:  Each element is an 2D-array of Models. 1st index is foreign model name. 2nd  index is the relation reference.</p><p>MANY_TO_ONE:  Indexes are foreign-key field names, elements are a Model.</p></span>	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>

	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
										| <a href="#sec-inherited">Inherited Properties and Methods</a>
															| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
																	| <a href="#sec-method-summary">Method Summary</a> | <span class="disabled">Methods Detail</span>
					</div>
		<div class="info-box-body">
			<a name='method_detail'></a>
<a name="methodcreate" id="create"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">static method create</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a161">161</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>static <a href="../Buan/Model.html">Model</a> create(
[string
$modelName = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>This is a Factory method for generating new instances of Model classes.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$modelName:&nbsp;</span></td>
				<td>
				<span class="var-description"> Optional Model name (UpperCamelCaps format)</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td class="indent"><strong>Example:</strong>&nbsp;&nbsp;</td><td>example not found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">Constructor __construct</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a120">120</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Model __construct(
[
$modelName = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$modelName:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	

			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../Buan/Object.html#method__construct">Object::__construct()</a></dt>
					</dl>
		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodaddRelatedModel" id="addRelatedModel"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">addRelatedModel</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a439">439</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void addRelatedModel(

$model, [
$relationRef = ModelRelation::REF_DEFAULT], [
$reverseRelationRef = NULL], [
$cancelBubble = FALSE]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$model:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$relationRef:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$reverseRelationRef:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$cancelBubble:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodclearRelatedModels" id="clearRelatedModels"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">clearRelatedModels</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1191">1191</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void clearRelatedModels(
[
$targetModelName = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$targetModelName:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methoddebug" id="debug"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">debug</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1516">1516</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void debug(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetDbConnectionName" id="getDbConnectionName"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getDbConnectionName</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1439">1439</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getDbConnectionName(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetDbData" id="getDbData"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getDbData</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1461">1461</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getDbData(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetDbTableName" id="getDbTableName"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getDbTableName</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1450">1450</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getDbTableName(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetForeignKey" id="getForeignKey"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getForeignKey</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1418">1418</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getForeignKey(

$model, [
$relationRef = ModelRelation::REF_DEFAULT]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$model:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$relationRef:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetLinkingModel" id="getLinkingModel"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getLinkingModel</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1260">1260</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getLinkingModel(

$rModel, [
$relationRef = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$rModel:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$relationRef:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetModelManager" id="getModelManager"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getModelManager</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a204">204</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getModelManager(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetPrimaryKey" id="getPrimaryKey"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getPrimaryKey</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1246">1246</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getPrimaryKey(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetPrimaryKeyValue" id="getPrimaryKeyValue"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getPrimaryKeyValue</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1321">1321</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getPrimaryKeyValue(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetPrimaryKeyValueToken" id="getPrimaryKeyValueToken"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getPrimaryKeyValueToken</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1349">1349</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getPrimaryKeyValueToken(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetRelatedModelByInstance" id="getRelatedModelByInstance"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getRelatedModelByInstance</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a773">773</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getRelatedModelByInstance(

$model, [
$relationRef = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$model:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$relationRef:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetRelatedModels" id="getRelatedModels"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getRelatedModels</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a639">639</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getRelatedModels(

$modelName, [
$relationRef = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$modelName:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$relationRef:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetRelatedModelsByCardinality" id="getRelatedModelsByCardinality"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getRelatedModelsByCardinality</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a751">751</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void getRelatedModelsByCardinality(

$cardinality, [
$modelName = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$cardinality:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$modelName:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodhasChanged" id="hasChanged"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">hasChanged</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1492">1492</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void hasChanged(
[
$hasChanged = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$hasChanged:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodhasCompositePrimaryKey" id="hasCompositePrimaryKey"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">hasCompositePrimaryKey</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1310">1310</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void hasCompositePrimaryKey(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodisInDatabase" id="isInDatabase"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">isInDatabase</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1505">1505</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void isInDatabase(
[
$isInDatabase = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$isInDatabase:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodloadRelatedModels" id="loadRelatedModels"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">loadRelatedModels</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1005">1005</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void loadRelatedModels(
[
$targetModelName = NULL], [
$criteria = NULL], [
$relationRef = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$targetModelName:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$criteria:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$relationRef:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodpopulateFromArray" id="populateFromArray"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">populateFromArray</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1477">1477</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void populateFromArray(

$data&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$data:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodremoveRelatedModel" id="removeRelatedModel"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">removeRelatedModel</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a842">842</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void removeRelatedModel(

$model, [
$relationRef = NULL], [
$cancelBubble = FALSE]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$model:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$relationRef:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$cancelBubble:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsetPrimaryKeyValue" id="setPrimaryKeyValue"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">setPrimaryKeyValue</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a1372">1372</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void setPrimaryKeyValue(

$arg1, [
$arg2 = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$arg1:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$arg2:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsetRelatedModel" id="setRelatedModel"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">setRelatedModel</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a601">601</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void setRelatedModel(

$model, [
$relationRef = ModelRelation::REF_DEFAULT], [
$reverseRelationRef = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$model:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$relationRef:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$reverseRelationRef:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="method__call" id="__call"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">__call</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a368">368</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void __call(

$method, 
$args&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$method:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$args:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="method__get" id="__get"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">__get</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a242">242</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void __get(

$fieldName&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fieldName:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="method__isset" id="__isset"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">__isset</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a216">216</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void __isset(

$fieldName&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fieldName:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="method__set" id="__set"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">__set</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a273">273</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void __set(

$fieldName, 
$fieldValue&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fieldName:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fieldValue:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="method__unset" id="__unset"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">__unset</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Buan__BuanModel.php.html#a228">228</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void __unset(

$fieldName&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fieldName:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>


        <div class="credit">
		    <hr class="separator" />
		    Documentation generated on Tue, 04 Aug 2009 19:59:03 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>